package controller

import (
	"data-system/enums"
	"data-system/models"

	"github.com/gin-gonic/gin"
)

func Enum(c *gin.Context) {
	enumKey := c.Query("enumKey")
	enum := enums.GetEnums(enumKey)
	c.JSON(models.OkData(enum))
}
